package com.lanxin.judge.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanxin.judge.entity.LcFlow;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-08-01
 */
public interface ILcFlowService extends IService<LcFlow> {

    //根据条件分页列表审批流程
    public IPage<LcFlow> pageJudgeFlow(Integer page,Integer pageSize,String flowName,String docType);

    //修改流程信息
    public int updateFlow(LcFlow flow);

    //添加流程
    public int addFlow(LcFlow flow);

    //检测流程名称是否合法
    public boolean checkFlowName(Integer oid,String flowName);

    //修改流程的状态
    public boolean editFlowState(Integer oid,String state);

    //删除流程
    public boolean deleteFlow(Integer oid);

}
